package _15_generics._15_8;

/**
 * 泛型数组
 * 可以有一个泛型数组的引用，但是不能创建
 */
public class _05_ArrayOfGeneric {
    static final int SIZE = 100;
    static Generic<Integer>[] gia;

    public static void main(String[] args) {
//        gia = (Generic<Integer>[])new Object[SIZE];

        gia = (Generic<Integer>[])new Generic[SIZE];
        //原始类型
        System.out.println(gia.getClass().getSimpleName());
        gia[0] = new Generic<>();
//        gia[1] = (Generic<Integer>) new Object();
    }
}

class Generic<T>{}
